import { services } from '@/config'

export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  searchMenuSpan: 6,
  searchLabelWidth: 100,
  searchShow: false,
  viewBtn: true,
  column: [
    {
      label: '姓名',
      prop: 'userName',
      formslot: true,
      searchslot: true,
      search: true,
      span: 12,
      display: true
    },
    {
      type: 'date',
      label: '参加日期',
      prop: 'inDate',
      search: true,
      span: 12,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      searchSpan: 12,
      searchRange: true
    },
    {
      type: 'select',
      label: '政治面貌',
      prop: 'politicalinfo',
      search: true,
      span: 12,
      props: { label: 'label', value: 'value' },
      dicUrl: `${services.adminService}dict/type/political_status_members`,
      dicMethod: 'get'
    }
  ]
}
